package request

import (
	"gitee.com/cjsn/topsdk/ability254/domain"
	"gitee.com/cjsn/topsdk/util"
)

type AlibabaSscSupplyplatformServiceworkerSaveRequest struct {
	/*
	   工人保存参数     */
	WorkerSaveForTopReqDto *domain.AlibabaSscSupplyplatformServiceworkerSaveWorkerSaveForTopReqDto `json:"worker_save_for_top_req_dto,omitempty" required:"false" `
}

func (s *AlibabaSscSupplyplatformServiceworkerSaveRequest) SetWorkerSaveForTopReqDto(v domain.AlibabaSscSupplyplatformServiceworkerSaveWorkerSaveForTopReqDto) *AlibabaSscSupplyplatformServiceworkerSaveRequest {
	s.WorkerSaveForTopReqDto = &v
	return s
}

func (req *AlibabaSscSupplyplatformServiceworkerSaveRequest) ToMap() map[string]interface{} {
	paramMap := make(map[string]interface{})
	if req.WorkerSaveForTopReqDto != nil {
		paramMap["worker_save_for_top_req_dto"] = util.ConvertStruct(*req.WorkerSaveForTopReqDto)
	}
	return paramMap
}

func (req *AlibabaSscSupplyplatformServiceworkerSaveRequest) ToFileMap() map[string]interface{} {
	fileMap := make(map[string]interface{})
	return fileMap
}
